package cn.training.bean;

import cn.agriculture.common.validator.constraints.NotEmpty;

public class UserBean {
	private String userId;
	private String username;
	private String password;
	private String repassword;

	@NotEmpty(field="用户密码",  message="{errors.required}")
	
	public String getPassword() {
		return password;
	}

	public String getRepassword() {
		return repassword;
	}

	public void setRepassword(String repassword) {
		this.repassword = repassword;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@NotEmpty(field="用户姓名",  message="{errors.required}")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}
